package com.example.neusoftfood_618lw.service;

import com.example.neusoftfood_618lw.beans.Shop;
import com.example.neusoftfood_618lw.beans.Success;
import com.example.neusoftfood_618lw.beans.UserInfo;

import javax.xml.transform.Result;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface UserService {
    @GET("userLogin.do")
    Call<UserInfo> login(@Query("username")String username,
                         @Query("userpass")String password);

    @GET("userRegister.do")
    Call<Success> register(
            @Query("username") String username,
            @Query("userpass") String userpass,
            @Query("mobilenum") String mobilenum,
            @Query("address") String address,
            @Query("comment") String comment
    );

    @GET("getAllShops.do")
    Call<Shop> AllShops(
            @Query("shop_id") String shop_id,
            @Query("shopname") String shopname,
            @Query("address") String address,
            @Query("intro") String intro,
            @Query("pic") String pic,
            @Query("comment") String comment,
            @Query("level") String level
    );


}
